package com.fujimana.android.manacode.converter;

public class Options {
	
	private boolean lineno;
	
	private int tabSize;
	
	private int fontSize;
	
	private String encoding;
	
	public Options() {
		loadDefault();
	}

	public int getFontSize() {
		return fontSize;
	}

	public void setFontSize(int fontSize) {
		this.fontSize = fontSize;
	}

	public boolean isLineno() {
		return lineno;
	}

	public void setLineno(boolean lineno) {
		this.lineno = lineno;
	}

	public int getTabSize() {
		return tabSize;
	}

	public void setTabSize(int tabSize) {
		this.tabSize = tabSize;
	}
	
	public String getEncoding() {
		return encoding;
	}

	public void setEncoding(String encoding) {
		this.encoding = encoding;
	}

	private void loadDefault() {
		this.lineno = true;
		this.tabSize = 4;
		this.fontSize = 12;
		
		String charaset = System.getProperty("file.encoding");
		if (charaset == null || charaset.trim().equals("")) {
			charaset = "UTF-8";
		}
		
		this.encoding = charaset;
	}
}
